<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>04_mvvm</title>
</head>

<body>
    <!-- view: 视图层 -->
    <div id="app">{{message}}</div>
</body>
<script src="../vue.js"></script>
<script>
    // new Vue: 就是 ViewModel 层
    const vm = new Vue({
        el: '#app',
        data: { //data: model 层
            message: 'mvvm'
        }
    })
</script>

</html>